import { DescItem } from '/@/components/Description';

export const teacherDescSchema: DescItem[] = [
  {
    field: 'name',
    label: '姓名',
    labelMinWidth: 100,
    contentMinWidth: 100,
  },
  {
    field: 'teacherNo',
    label: '工号',
    contentMinWidth: 200,
  },
  {
    field: 'qualificationCqertqificateNo',
    label: '教师资格证号',
    contentMinWidth: 300,
  },
  {
    field: 'teacherPhone',
    label: '联系电话',
  },
  {
    field: 'level',
    label: '级别',
    render: (_val: any, data: Recordable) => {
      const levelJason = {
        '1': '高级讲师',
        '2': '首席讲师',
      };
      return levelJason[data.level];
    },
  },
  {
    field: 'career',
    label: '资历',
  },
  {
    field: 'gmtCreate',
    label: '加入时间',
    span: 3,
  },
  {
    field: 'intro',
    label: '简介',
    span: 3,
  },
];
